package common

import "fmt"

func MakeGatewayAddrKey() string {
	return "GatewayAddr"
}

type AccountInfo struct {
	PassWord string
	Uid      uint64
}

func MakeAccountKey(account string) string {
	return fmt.Sprintf("Account:%s", account)
}

func MakeNickNameKey(nickName string) string {
	return fmt.Sprintf("NickName:%s", nickName)
}

func MakePlayerIsOnline(uid uint64) string {
	return fmt.Sprintf("IsOnlne:%v", uid)
}
